<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<title>显示消息内容</title>
<link href="/oa/css/message.css" type="text/css" rel="stylesheet" />
<link href="/oa/css/style.css" type="text/css" rel="stylesheet" />
<script type="text/javascript">
	function show() {
		var myId = getParam('id');
		if (myId != null)
			window.location.href ='<s:url action="showMessageContent" namespace="/messageManage" />'+'?showId=' + myId;
	}

	var getParam = function(name) {
		var search = document.location.search;
		var pattern = new RegExp("[?&]" + name + "\=([^&]+)", "g");
		var matcher = pattern.exec(search);
		var items = null;
		if (null != matcher) {
			try {
				items = decodeURIComponent(decodeURIComponent(matcher[1]));
			} catch (e) {
				try {
					items = decodeURIComponent(matcher[1]);
				} catch (e) {
					items = matcher[1];
				}
			}
		}
		return items;
	};
</script>
</head>
<body onload="show()">
	<p>该消息基本内容如下：</p>
	<textarea cols="100" rows="10" readonly="readonly"> ${messageToUserBean.message.content }
</textarea>
	<br />
	<input type="button" value="关 闭" onclick="javascript:self.close();"
		class="common_button" />
</body>
</html>